package com.ydj.framework.third.wxpay.protocol;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Getter
@Setter
@Accessors(chain = true)
public class WxGetUserPhoneNumberRes implements Serializable {


    /**
     * errcode : 0
     * errmsg : ok
     * phone_info : {"phoneNumber":"xxxxxx","purePhoneNumber":"xxxxxx","countryCode":86,"watermark":{"timestamp":1637744274,"appid":"xxxx"}}
     */

    private Integer errcode;
    private String errmsg;
    private PhoneInfoBean phone_info;

    @Data
    public static class PhoneInfoBean implements Serializable {
        /**
         * phoneNumber : xxxxxx
         * purePhoneNumber : xxxxxx
         * countryCode : 86
         * watermark : {"timestamp":1637744274,"appid":"xxxx"}
         */

        private String phoneNumber;
        private String purePhoneNumber;
        private Integer countryCode;
        private WatermarkBean watermark;

        @Data
        public static class WatermarkBean implements Serializable {
            /**
             * timestamp : 1637744274
             * appid : xxxx
             */

            private Long timestamp;
            private String appid;
        }
    }
}
